Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬Global itemToPrint, printListIssueNums, selectedTitlesIndex¬Global titlesCardNumList, frontAndBackLabels, labelType, selectedLabel¬global gWindowPositions¬global gTitlesToPrintType¬global gListOnlyIssuesInStock, gIncludeStorylinesWithNotes¬global gIssuesOfEachTitle, gPrintMissingIssues, gGroupIssueNumbers¬global gTitlePicturesAndDesc, gReportItemListNames, gReportItemListItems¬global gDoBarcodes¬¬---------------------¬-- This is window #17¬---------------------¬¬if objValue="Open" then¬ set cursor to watch¬ -- Restore old window position¬ put OldWindowPosition(17) into windowRect¬ if windowRect = empty then centerWindow wdName¬ else wsSet wdID,"0","Rect",windowRect¬ ¬ -- Clear out the print list¬ put empty into printListIssueNums -- the list of issue indexes¬ put empty into titlesCardNumList -- list of card numbers corresponding to the issues¬ put empty into selectedTitlesIndex¬ ¬ put "All" into gTitlesToPrintType¬ put cd fld ((the selectedText of cd btn "Product Name" of cd 3) && "Report List") of cd 2 into theReportList¬ ¬ wsSet wdID,"ReportTypes","Text",theReportList¬ wsSet wdID,"ReportTypes","AutoSize",False¬ wsSet wdID,"ReportTypes","AutoSize",True¬ ¬ -- Hilite the selected type of report¬ put getColumn(theReportList,1,1,"◊") into theReportNames¬ if itemToPrint = empty then put line 1 of theReportNames into itemToPrint¬ put find(theReportNames,itemToPrint,"Line","Exact") into selectPos¬ put "ReportTypes_Selection:" & selectPos & return into setupCommands¬ ¬ -- Pull out the attributes lists¬ put cd fld("Report Items") of cd 2 into reportItemList¬ put getcolumn(reportItemList,1,1,"◊") into gReportItemListNames¬ put getcolumn(reportItemList,2,2,"◊") into gReportItemListItems¬ ¬ -- Start building property list¬ put find(gReportItemListNames,itemToPrint,"Line","Exact") into itemIndex¬ if itemIndex = 0 then¬ Get Windowscript("Stop Alert","Error: Couldn’t find setup information for report type: " & itemToPrint)¬ else¬ put xlate(line itemIndex of gReportItemListItems,numToChar(194),return) after setupCommands¬ end if¬ ¬ if itemToPrint = "Divider Blurbs" or itemToPrint = "Price Labels" or itemToPrint = "Divider Labels" then¬ -- Set the popup¬ if labelType = empty or labelType = "labelType" then¬ put "Avery 5160" into LabelType¬ end if¬ put "LabelTypePop_SelectionText:" & LabelType & return after setupCommands¬ put 1 into selectedLabel¬ send SetupLabelSizes to cd btn "SetupLabelSizes" of cd 2¬ end if¬ ¬ -- set the title selection & other parameters¬ if gReportType = "Summary" then¬ put "i15_Hilite:True" & return & "i16_Hilite:False" & return & "i17_Hilite:False" & return after setupCommands¬ else if gReportType = "Basic" then¬ put "i15_Hilite:False" & return & "i16_Hilite:True" & return & "i17_Hilite:False" & return after setupCommands¬ else¬ put "i15_Hilite:False" & return & "i16_Hilite:False" & return & "i17_Hilite:True" & return after setupCommands¬ end if¬ ¬ put "i6_Hilite:True" & return & "i7_Hilite:False" & return & "i8_Hilite:False" & return & "i24_Hilite:" & gListOnlyIssuesInStock & return & "i25_Hilite:" & gIncludeStorylinesWithNotes & return & "i11_Hilite:" & gTitlePicturesAndDesc & return & "i12_Hilite:" & gIssuesOfEachTitle & return & "i13_Hilite:" & gPrintMissingIssues & return & "i14_Hilite:" & gGroupIssueNumbers & return & "i18_Hilite:" & FrontAndBackLabels & return & "i27_Hilite:" & gDoBarcodes & return after setupCommands¬ ¬ wsSet "Print","0","Properties",setupCommands¬ set cursor to arrow¬else if objValue="Close" then¬ -- save the window position¬ put "17" & tab & wdName & tab & wsGet(wdID,"0","Rect") into line 17 of gWindowPositions¬ ¬end if¬¬--end windowEvent¬
ItemType: PUSH
Rect: 359,264,439,284
AutoSize: FALSE
Name: Print…
DefaultItem: TRUE
AutoClose: TRUE
Balloon: Click here to begin printing.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global itemToPrint, gShortDate¬global gIncludeStorylinesWithNotes, gDoBarCodes¬global gDoPreview¬¬put false into gDoPreview¬¬set cursor to watch¬hide window "Print"¬¬put wsGet("Print","Include Storylines","Hilite") into gIncludeStorylinesWithNotes¬put wsGet("Print","Include Bar Codes","Hilite") into gDoBarCodes¬¬-- Come up with a date coding¬set the itemDelimiter to "/"¬put the short date into ShortDate¬put (item 1 of shortDate) & "X" & (item 2 of shortDate) & (char 2 of item 3 of shortdate) into gShortDate¬set the itemDelimiter to comma¬¬if itemToPrint = "Price Labels" then¬ send FormIssueLists to cd 1 of bg "Title"¬ send PrintPriceLabels to cd 1¬else if itemToPrint = "Price List" then send PrintPriceList to cd btn "printPriceList" of cd 2¬else if itemToPrint = "Divider Labels" then send "PrintDividerLabels" to cd 1¬else if itemToPrint = "Divider Blurbs" then send printDividerBlurbs to cd btn "printIssuechecklists" of cd 2¬else if itemToPrint = "Title Report" then send "PrintTitleReport" to cd btn "PrintTitleReport" of cd 2¬else if itemToPrint = "Issue Checklists" then send printissueChecklists to cd btn "printIssuechecklists" of cd 2¬--end mouseUp
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global itemToPrint, gReportItemListNames, gReportItemListItems¬Global itemToPrint, titlesCardNumList, printListIssueNums¬Global selectedTitlesIndex¬¬if objValue <> empty then¬ -- Clear out the print list¬ put empty into printListIssueNums -- the list of issue indexes¬ put empty into titlesCardNumList -- list of card numbers corresponding to the issues¬ put empty into selectedTitlesIndex¬ ¬ put getColumn(objValue,1,1,"◊") into itemToPrint¬ ¬ -- Start building property list¬ put find(gReportItemListNames,itemToPrint,"Line","Exact") into itemIndex¬ if itemIndex = 0 then¬ Get Windowscript("Stop Alert","Error: Couldn’t find setup information for report type: " & itemToPrint)¬ else¬ put xlate(line itemIndex of gReportItemListItems,numToChar(194),return) into setupCommands¬ end if¬ ¬ if itemToPrint = "Divider Blurbs" or itemToPrint = "Price Labels" or itemToPrint = "Divider Labels" then¬ -- Set the popup¬ if labelType = empty or labelType = "labelType" then¬ put "Avery 5160" into LabelType¬ end if¬ put "LabelTypePop_SelectionText:" & LabelType & return after setupCommands¬ put 1 into selectedLabel¬ send SetupLabelSizes to cd btn "SetupLabelSizes" of cd 2¬ end if¬ wsSet "Print","0","Properties",setupCommands¬else¬ put cd fld ((cd fld "Product Name" of cd 1) && "Report List") of cd 2 into theReportList¬ put getColumn(theReportList,1,1,"◊") into theReportNames¬ put find(theReportNames,itemToPrint,"Line","Exact") into selectPos¬ wsSet "Print","ReportTypes","Selection",SelectPos¬end if¬¬if itemToPrint = "Title Report" then¬ wsSet "Print","25","Disabled", not (wsGet("Print","12","Hilite") or wsGet("Print","13","Hilite"))¬end if¬--end mouseUp
ItemType: BOX
Rect: 9,86,238,151
Pen: White
ItemType: BOX
Rect: 8,82,237,150
TextFont: Geneva
TextSize: 9
TextStyle: Bold
BlackColor: -26215,-26215,-26215
WhiteColor: -8739,-8739,-8739
Name: Titles to print
ItemType: RAD
Rect: 16,94,55,110
TextSize: 12
WhiteColor: -8739,-8739,-8739
Name: All
Hilite: TRUE
Balloon: Click here to include all ComicBase titles in the report (or labels) you’ve selected.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global gTitlesToPrintType¬¬put objName into gTitlesToPrintType¬wsSet wdID,"Print…","Disabled","False"¬--end mouseUp
ItemType: RAD
Rect: 16,111,149,127
TextSize: 12
WhiteColor: -8739,-8739,-8739
Name: Selected titles…
Balloon: Click here to select only specific titles for inclusion in your chosen report (or label printing).
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global selectedTitlesIndex¬global gTitlesToPrintType¬¬set cursor to watch¬put objName into gTitlesToPrintType¬get windowScript("Select Titles","Print which titles?")¬if it <> empty then¬ put xlate(selectedTitleNums,comma,return) & return into selectedTitlesIndex¬end if¬¬wsSet "Print",1,"Disabled",(selectedTitlesIndex = empty)¬--end mouseUp
ItemType: RAD
Rect: 16,127,150,143
WhiteColor: -8739,-8739,-8739
Name: Selected Issues…
Balloon: Click here to select a list of specific issue numbers to print labels for.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global printListIssueNums¬global gTitlesToPrintType¬¬set cursor to watch¬put objName into gTitlesToPrintType¬Get WindowScript("Issue Selection")¬wsSet "Print",1,"Disabled",(printListIssueNums = empty)¬--end mouseUp
ItemType: BOX
Rect: 9,151,238,201
Visible: FALSE
Pen: White
ItemType: BOX
Rect: 9,147,237,200
TextFont: Geneva
TextSize: 9
TextStyle: Bold
Visible: FALSE
BlackColor: -26215,-26215,-26215
WhiteColor: -8739,-8739,-8739
Name: Report Items
ItemType: CHK
Rect: 16,194,225,210
Visible: FALSE
WhiteColor: -8739,-8739,-8739
Name: Title pictures & descriptions
Hilite: TRUE
Balloon: If this item is checked, the titles report will include both a picture from each title and the title’s description. ¬¬This is useful for reviewing your collection, but can take a great deal of paper to print.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global gTitlePicturesAndDesc¬¬put objValue into gTitlePicturesAndDesc¬put (not (gTitlePicturesAndDesc or wsGet(wdID,"12","Hilite") or wsGet(wdID,"13","Hilite"))) into disablePrint¬¬wsSet "Print","Print…","Disabled",disablePrint¬--end mouseUp
ItemType: CHK
Rect: 16,160,168,176
Visible: FALSE
WhiteColor: -8739,-8739,-8739
Name: Issues of each title
Balloon: Check this item to include a list of the issues you own for each title.¬¬This list can be printed in condensed format if you check the “Group issue numbers together” item below, or in checklist format if that item is unchecked.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬Global gIssuesOfEachTitle¬¬put objValue into gIssuesOfEachTitle¬¬put (gIssuesOfEachTitle = false) and (wsGet(wdID,"Missing Issues for Each Title","Hilite") = false) into disableGroupIssues¬put (disableGroupIssues and not (wsGet(wdID,"Title pictures & descriptions","Hilite"))) into disablePrint¬¬wsSet wdID,"Properties","i14_Disabled:" & disableGroupIssues & return & "i25_Disabled:" & disableGroupIssues & return & "Print…_Disabled:" & disablePrint & return¬¬--end mouseUp
ItemType: CHK
Rect: 16,177,226,193
Visible: FALSE
WhiteColor: -8739,-8739,-8739
Name: Missing issues for each title
Hilite: TRUE
Balloon: Check this item to include a list of the issues you are missing for each title.¬¬This list can be printed in condensed format if you check the “Group issue numbers together” item below, or in checklist format if that item is unchecked.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬Global gPrintMissingIssues¬¬put objValue into gPrintMissingIssues¬¬put (gPrintMissingIssues = false) and (wsGet(wdID,"Issues of each title","Hilite") = false) into disableGroupIssues¬put (disableGroupIssues and not (wsGet(wdID,"Title pictures & descriptions","Hilite"))) into disablePrint¬¬wsSet wdID,"Properties","i14_Disabled:" & disableGroupIssues & return & "i25_Disabled:" & disableGroupIssues & return & "Print…_Disabled:" & disablePrint & return¬--end mouseUp
ItemType: CHK
Rect: 16,221,239,237
Visible: FALSE
WhiteColor: -8739,-8739,-8739
Name: Group issue numbers together
Hilite: TRUE
Balloon: Checking this item groups “runs” of issues together. For instance, issues #1, 2, 3, 7, and 8 will print as 1–3, 7–8.¬¬If the item is unchecked, issues will appear separately (useful for checklists).
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬Global gGroupIssueNumbers¬¬put objValue into gGroupIssueNumbers¬--end mouseUp
ItemType: RAD
Rect: 16,160,101,176
Visible: FALSE
WhiteColor: -8739,-8739,-8739
Name: Summary
Balloon: Clicking here chooses a summary style of report. This contains totals without the detailed listing of issues, etc.
Balloon: Clicking here chooses the basic style of report. This gives standard information on each title, without going into as much detail as the “detailed” report style.
Balloon: Clicking here chooses the most detailed style of report. This gives information on each issue, as well as totals by title and grand totals for the collection.
Balloon: Choose the type of label you are printing on here. Most popular types of Avery labels are selected.¬¬If you are using a different type of label, choose the Avery label type that is closest to your label (or buy Avery labels!).
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬Global labelType¬¬put wsGet ("Print", objNo, "TextofSelection") into labelType¬¬send SetupLabelSizes to cd btn "SetupLabelSizes" of cd 2¬--end mouseUp
ItemType: BOX
Rect: 267,85,440,256
WhiteColor: -8739,-8739,-8739
Fill: Gray
ItemType: LBL
Rect: 16,167,85,183
WhiteColor: -4370,-4370,-4370
Text: Label Type:
ItemType: TEXT
Rect: 271,72,426,84
TextFont: Geneva
TextSize: 9
Name: LabelClickPrompt
WhiteColor: -8739,-8739,-8739
Text: Click on the first label’s position:
ItemType: PICT
Rect: 292,89,415,249
WhiteColor: -8739,-8739,-8739
Name: 5160 Label Grid
Grid: 3,10
Logic: Radio
Balloon: Click on a box here to choose where the first label should print. This allows you to conserve labels by printing in the middle of a partial page of labels.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬Global selectedLabel¬¬put wsget(wdID,objNo,"Selection") into baseNum¬put wsGet(wdID,objNo,"Grid") into myGrid¬put item 1 of myGrid into myCols¬put item 2 of myGrid into myRows¬¬-- Recalculate the logic of the print order to move up-down rather than¬-- left-right (to match Reports’ printing)¬¬repeat with x = 1 to myCols¬ if (baseNum - x) mod myCols = 0 then¬ put x into thisCol¬ put ((baseNum - 1) div myCols) + 1 into thisRow¬ ¬ put (thisCol - 1) * myRows + thisRow into selectedLabel¬ exit repeat¬ end if¬end repeat¬--end mouseUp¬¬
ItemType: CHK
Rect: 16,221,232,237
AutoSize: FALSE
Visible: FALSE
WhiteColor: -8739,-8739,-8739
Name: List only issues in stock
Balloon: If this setting is checked, only the issues that you have one or more in stock of will print in the report.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global gListOnlyIssuesInStock¬¬put objValue into gListOnlyIssuesInStock¬--end mouseUp
ItemType: CHK
Rect: 16,239,159,255
WhiteColor: -8739,-8739,-8739
Name: Include storylines
Hilite: TRUE
Balloon: If this setting is checked, ComicBase will print storylines in addition to the notes for a given issue.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global gIncludeStorylinesWithNotes¬¬put objValue into gIncludeStorylinesWithNotes¬--end mouseUp
ItemType: PUSH
Rect: 17,267,143,287
Visible: FALSE
WhiteColor: -8739,-8739,-8739
Name: More Choices…
ItemType: CHK
Rect: 16,221,157,237
WhiteColor: -8739,-8739,-8739
Name: Include bar codes
Balloon: If this setting is checked, your labels will show include bar codes. This is useful if you use a point-of-sale system, but leaves less space for notes.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global gDoBarcodes¬¬put objValue into gDoBarcodes¬--end mouseUp
ItemType: LINE
Rect: 13,86,101,87
TextStyle: Bold
BlackColor: -8739,-8739,-8739
ItemType: LBL
Rect: 18,79,100,91
TextFont: Geneva
TextSize: 9
TextStyle: Bold
BlackColor: 17476,17476,17476
WhiteColor: -8739,-8739,-8739
Text: Titles to print
ItemType: LINE
Rect: 14,151,94,152
BlackColor: -8739,-8739,-8739
ItemType: LBL
Rect: 19,144,93,156
TextFont: Geneva
TextSize: 9
TextStyle: Bold
Visible: FALSE
BlackColor: 17476,17476,17476
WhiteColor: -8739,-8739,-8739
Text: Report Items
ItemType: PUSH
Rect: 266,264,346,284
AutoSize: FALSE
WhiteColor: -8739,-8739,-8739
Name: Preview…
AutoClose: TRUE
Balloon: Click here to begin printing.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬global itemToPrint, gShortDate¬global gIncludeStorylinesWithNotes, gDoBarCodes¬global gDoPreview¬¬put true into gDoPreview¬set cursor to watch¬hide window "Print"¬¬put wsGet("Print","Include Storylines","Hilite") into gIncludeStorylinesWithNotes¬put wsGet("Print","Include Bar Codes","Hilite") into gDoBarCodes¬¬-- Come up with a date coding¬set the itemDelimiter to "/"¬put the short date into ShortDate¬put (item 1 of shortDate) & "X" & (item 2 of shortDate) & (char 2 of item 3 of shortdate) into gShortDate¬set the itemDelimiter to comma¬¬if itemToPrint = "Price Labels" then¬ send FormIssueLists to cd 1 of bg "Title"¬ send PrintPriceLabels to cd 1¬else if itemToPrint = "Price List" then send PrintPriceList to cd btn "printPriceList" of cd 2¬else if itemToPrint = "Divider Labels" then send "PrintDividerLabels" to cd 1¬else if itemToPrint = "Divider Blurbs" then send printDividerBlurbs to cd 1¬else if itemToPrint = "Title Report" then send "PrintTitleReport" to cd btn "PrintTitleReport" of cd 2¬else if itemToPrint = "Issue Checklists" then send printissueChecklists to cd btn "printIssuechecklists" of cd 2¬--end mouseUp